home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Sound
/
SoundEffects 0.9.2
/
SoundEffects Developer’s Kit
/
Interfaces
/
ModGetSetSamples.h
< prev
next >
Wrap
Text File
|
1994-11-19
|
333b
|
11 lines
// When samples are 8 bits in size:
#define GetSample8(x) ((signed char)(*(signed char *)x ^ 0x80))
#define SetSample8(x, s) *(signed char *)x = (SignedByte)s ^ 0x80
// When samples are 9 to 32 bits in size:
signed long GetSample16(Ptr samplePtr, short bps);
void SetSample16(Ptr samplePtr, signed long mySample, short bps);